package com.cheng.example.geektime.designpatterns.j57.writeventbuself;


/**
 * 发放新的用户体验金
 */
public class RegPromotionObserver {
    private PromotionService promotionService = new PromotionService();//依赖注入

    @Subscribe(color = "red")
    public void handleRegSuccess(String userId) {
        promotionService.issueNewUserExperienceCash(Long.valueOf(userId));
    }
}
